<%@ include file="/WEB-INF/view/common/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
	<head> 
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<link rel="stylesheet" href="/456cv/css/custom.css" type="text/css" />
	</head>
	<body>
		<div id="globalcontainer">
			<div class="collaborateur">
				<div class="container">
				
					<c:if test="${not empty errors}">
					<div class="error"> 
						<c:forEach var="error" items="${errors}">
							<c:out value="${error}" escapeXml="false"/>
							<br/>
						</c:forEach>
					</div>
					</c:if>
				
					<div class="titre">
						<h1>
							<c:if test="${urlPostAction == 'save'}" >
								<fmt:message key="lang.common.headtitle.add"/>
							</c:if>
							<c:if test="${urlPostAction == 'actualiser'}" >
								<fmt:message key="lang.common.headtitle.update"/>
							</c:if>
						</h1>
					</div>
					<div class="langue formulaire">
						<form:form method="post"  action="${urlPostAction}.htm" commandName="langue" cssClass="nomarge">
							<p>	
								<span class="content titre-common"><fmt:message key="lang.common.headlabel.lang"/></span>
								<span class="content zone-common">
	
									<spring:bind path="langue.langueList">
										<form:select path="libelle" items="${langue.langueList}" cssClass="common form input"/>
									</spring:bind>
									
									<form:errors path="libelle" cssClass="error"/>
								</span>
							</p>
							<p>	
								<span class="content titre-common"><fmt:message key="lang.common.headlabel.level"/></span>
								<span class="content zone-common">
									<spring:bind path="langue.niveau">
										<form:input path="niveau" size="25" maxlength="50" cssClass="common form input"/>
									</spring:bind>
								</span>
							</p>
							<p>	
								<span class="content titre-common"><fmt:message key="lang.common.headlabel.practice"/></span>
								<span class="content zone-common">
									<spring:bind path="langue.pratique">
										<form:input path="pratique" size="25" maxlength="50" cssClass="common form input" />
									</spring:bind>
								</span>
							</p>	
							<p>	
								<span class="content titre-commentaire"><fmt:message key="lang.common.headlabel.comment"/></span>
								<span class="content zone-commentaire">
									<spring:bind path="langue.commentaire">
										<form:textarea path="commentaire" rows="3" cols="20" cssClass="common form textarea" />
									</spring:bind>
								</span>
							</p>
							
							<div class="cleaner"></div>
							
							<div  class="content commande action">
								<input type="submit" value="enregistrer">
							</div>		
						</form:form>
					<div>
				</div>
			</div>
			<div class="common commande action">
				<p>
					<a href="afficherliste.htm"><fmt:message key="lang.consult.headlabel.list" /></a>
				</p>
			</div>
		</div>
	</body>
</html>